package com.cdcas.class1920;

public class MainTest1 {

    public static final String EMP_DATA = "empno:111|ename:aaa|job:工作|" +
            "salary:3000.0|hireDate:2025-04-21 16:44:40|" +
            "dept.detpno:1|dept.dname:大数据|dept.company.cno:3|dept.company.cname:test";
    public static void main(String[] args) {

        Emp emp = ObjectInstanceFactory1.create(Emp.class,EMP_DATA);
        System.out.println(emp);
        System.out.println(emp.getDept());
        System.out.println(emp.getDept().getCompany());

    }
}
